<?php

namespace app\api\controller;

use app\common\controller\Api;
use app\api\service\PollingService;

/**
 * 轮询接口
 */
class Polling extends Api
{
    protected $noNeedLogin = ['*'];
    protected $noNeedRight = ['*'];

    /**
     * 工单超时未确认提醒
     *
     */
    public function confirm_timeout()
    {
        $res = PollingService::confirmTimeout();
        return json($res);
    }


    /**
     * 工单用户超时为点击完成
     *
     */
    public function complete_timeout()
    {
        $res = PollingService::completeTimeout();
        return json($res);
    }
    
    
    /**
     * 提现超时未确认
     *
     */
    public function withdrawal_timeout()
    {
        $res = PollingService::withdrawalTimeout();
        return json($res);
    }
}
